import gviz_api

def DrawTable(description, data, order_by):
        # Loading it into gviz_api.DataTable
        data_table = gviz_api.DataTable(description)
        data_table.LoadData(data)
        # Creating a JavaScript code string
        jscode = data_table.ToJSCode("jscode_data",
                        columns_order=[r[0] for r in description],
                        order_by=order_by)
        # Creating a JSon strin
        json = data_table.ToJSon(columns_order=[r[0] for r in description],order_by=order_by)

	return (jscode, json)

